package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysEvaluateaverageMapper;
import com.ruoyi.system.domain.SysEvaluateaverage;
import com.ruoyi.system.service.ISysEvaluateaverageService;
import com.ruoyi.common.core.text.Convert;

/**
 * 评价评分Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-13
 */
@Service
public class SysEvaluateaverageServiceImpl implements ISysEvaluateaverageService 
{
    @Autowired
    private SysEvaluateaverageMapper sysEvaluateaverageMapper;

    /**
     * 查询评价评分
     * 
     * @param evaluateAverageId 评价评分ID
     * @return 评价评分
     */
    @Override
    public SysEvaluateaverage selectSysEvaluateaverageById(Long evaluateAverageId)
    {
        return sysEvaluateaverageMapper.selectSysEvaluateaverageById(evaluateAverageId);
    }

    /**
     * 查询评价评分列表
     * 
     * @param sysEvaluateaverage 评价评分
     * @return 评价评分
     */
    @Override
    public List<SysEvaluateaverage> selectSysEvaluateaverageList(SysEvaluateaverage sysEvaluateaverage)
    {
        return sysEvaluateaverageMapper.selectSysEvaluateaverageList(sysEvaluateaverage);
    }

    /**
     * 新增评价评分
     * 
     * @param sysEvaluateaverage 评价评分
     * @return 结果
     */
    @Override
    public int insertSysEvaluateaverage(SysEvaluateaverage sysEvaluateaverage)
    {
        return sysEvaluateaverageMapper.insertSysEvaluateaverage(sysEvaluateaverage);
    }

    /**
     * 修改评价评分
     * 
     * @param sysEvaluateaverage 评价评分
     * @return 结果
     */
    @Override
    public int updateSysEvaluateaverage(SysEvaluateaverage sysEvaluateaverage)
    {
        return sysEvaluateaverageMapper.updateSysEvaluateaverage(sysEvaluateaverage);
    }

    /**
     * 删除评价评分对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysEvaluateaverageByIds(String ids)
    {
        return sysEvaluateaverageMapper.deleteSysEvaluateaverageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除评价评分信息
     * 
     * @param evaluateAverageId 评价评分ID
     * @return 结果
     */
    @Override
    public int deleteSysEvaluateaverageById(Long evaluateAverageId)
    {
        return sysEvaluateaverageMapper.deleteSysEvaluateaverageById(evaluateAverageId);
    }
}
